
/* <<< COPYRIGHT START >>>
 * Copyright 2006-Present OxygenSoftwareLibrary.com
 * Licensed under the GNU Lesser General Public License.
 * http://www.gnu.org/licenses/lgpl.html
 * 
 * @author: Ugorji Dick-Nwoke
 * <<< COPYRIGHT END >>>
 */


package oxygen.tool.wlfacade.plugins;

import oxygen.tool.facade.FacadePluginAdapter;
import oxygen.tool.wlfacade.WLFacadeContextHelper;
import oxygen.tool.wlfacade.WLScriptHelper;
import oxygen.tool.wlfacade.WLTree;
import oxygen.util.OxyTable;

public class Find extends FacadePluginAdapter {

  public OxyTable execute(String stringrep) throws Exception {
    WLFacadeContextHelper wlctx = new WLFacadeContextHelper(ctx);
    WLScriptHelper.ensureTreeSelected(wlctx);
    WLTree wltree = wlctx.getCurrentTree();
    return wltree.find(stringrep);
  }
  
}

